package com.malty.mongodb.domain.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author malty
 */
@Data
@Document(collection = "company")
public class Employee {
    @Id
    private String id;
    private String name;
    private String email;
    private String gender;
    private Integer age;
}
